﻿using ChatLibrary.ChatDTOs;
using GalaSoft.MvvmLight;
using IGL_Talk_Windows_Desktop.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IGL_Talk_Windows_Desktop.ViewModel
{
    public class UserViewModel : ViewModelBase
    {
        private UserModel _user = new UserModel();
        public User User
        {
            get { return _user.User; }
            set
            {
                _user.User = value;
                RaisePropertyChanged(() => User);
            }
        }

        public bool isCurrentUser
        {
            get { return _user.IsCurrentUser; }
            set
            {
                _user.IsCurrentUser = value;
                RaisePropertyChanged(() => isCurrentUser);
            }
        }
        public UserViewModel(User user, bool isCurrent)
        {
            _user.User = user;
            _user.IsCurrentUser = isCurrent;
        }
    }
}
